Count Even and Odd numbers in an Array in Python